<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" <?php if (isset($language->dir)) print 'dir="'.$language->dir.'"'; ?>>
	<head>
	    <?php print $head ?>
    	<title><?php print $head_title ?></title>
	    <?php print $styles ?>
	    <?php print $scripts ?>
		<script type="text/javascript" src="<?php echo $base_path.$directory; ?>/js/mootools/mootools-1.2.3-core.js"></script>
		<script type="text/javascript" src="<?php echo $base_path.$directory; ?>/js/mootools/mootools-1.2.3.1-more.js"></script>
		<script type="text/javascript" src="<?php echo $base_path.$directory; ?>/js/component/loader.js"></script>
		<script type="text/javascript" src="<?php echo $base_path.$directory; ?>/js/share.js"></script>
		<script type="text/javascript" src="<?php echo $base_path.$directory; ?>/js/AC_RunActiveContent.js"></script>
	</head>

    <body<?php if ($node->type.$node->nid) {?> id="<?php print $node->type.$node->nid; ?>"<?php } ?><?php if ($node->type.$node->nid) {?> class="<?php print $node->type; ?>"<?php } ?>>

		<div id="warpper">

            <div id="header">
				<h1><a href="<?php echo $base_path; ?>" title="<?php echo t('Home'); ?>" class="home"><img src="<?php echo $base_path . $directory; ?>/images/ttl_site.jpg" alt="<?php echo($site_name); ?>" width="227" height="40" /></a></h1>
				<?php if ($header): ?>
					<?php print $header ?>
				<?php endif; ?>
            </div>

            <div id="main">
				<?php if ($node->type == "page"): ?>
		    		<?php if ($title): ?><h2><img src="<?php print $base_path."sites/default/files/images/ttl_".$node->type.$node->nid.".jpg" ?>" alt="<?php print $title ?>" /></h2><?php endif; ?>
				<?php else: ?>
			    	<?php if ($title): ?><h2><?php echo $title ?></h2><?php endif; ?>
				<?php endif; ?>

				<div class="content">
					<?php if ($breadcrumb): print $breadcrumb; endif; ?>
		            <?php if ($mission): ?><div id="mission"><?php echo $mission; ?></div><?php endif; ?>
		            <?php if ($tabs): ?><div class="tabs"><?php echo $tabs ?></div><?php endif; ?>
		            <?php print $help; ?>
		            <?php print $messages; ?>
		            <?php print $content; ?>
		            <?php print $feed_icons; ?>
                </div>

				<div class="sidebar">
				    <?php if (isset($secondary_links)) : ?>
				    	<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
				    <?php endif; ?>

					<?php if ($left): ?>
						<?php print $left ?>
					<?php endif; ?>
				</div>
            </div>

            <div id="footer">
				<?php print $footer ?>
				<p><?php print $footer_message ?></p>
			</div>
		</div>

		<?php print $closure ?>

    </body>
</html>